package com.tilaiedu.mvc.mapper;

import com.tilaiedu.mvc.entity.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer uid);

    int insert(User record);

    User selectByPrimaryKey(Integer uid);

    List<User> selectAll();

    int updateByPrimaryKey(User record);

    @Select("select * from user where account=#{param1} and password=#{param2}")
    User selectByParam(String acc,String pwd);
}